Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-6314][CORE] handle JsonParseException for history server #5736

Closed
wants to merge 1 commit into from

Conversation

liyezhang556520
Copy link
Contributor

This is handled in the same way with SPARK-6197. The result of this PR is that exception showed in history server log will be replaced by a warning, and the application that with un-complete history log file will be listed on history server webUI

@SparkQA
Copy link

SparkQA commented Apr 28, 2015

Test build #31121 has finished for PR 5736 at commit b8d2d88.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.
  • This patch does not change any dependencies.

@srowen
Copy link
Member

srowen commented Apr 28, 2015

That's probably fine. CC @andrewor14 @vanzin

@@ -333,8 +333,9 @@ private[history] class FsHistoryProvider(conf: SparkConf) extends ApplicationHis
}
try {
val appListener = new ApplicationEventListener
val maybeTruncated = logPath.getName().endsWith(EventLoggingListener.IN_PROGRESS)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to call isApplicationCompleted(eventLog) instead, to handle legacy logs. (You can then replace the same call a few lines below with the result, to avoid another trip to HDFS.)

@vanzin
Copy link
Contributor

vanzin commented Apr 28, 2015

LGTM aside from the one issue I pointed out.

@asfgit asfgit closed this in 8009810 Apr 28, 2015
asfgit pushed a commit that referenced this pull request Apr 28, 2015
This is handled in the same way with [SPARK-6197](https://issues.apache.org/jira/browse/SPARK-6197). The result of this PR is that exception showed in history server log will be replaced by a warning, and the application that with un-complete history log file will be listed on history server webUI

Author: Zhang, Liye <liye.zhang@intel.com>

Closes #5736 from liyezhang556520/SPARK-6314 and squashes the following commits:

b8d2d88 [Zhang, Liye] handle JsonParseException for history server
@andrewor14
Copy link
Contributor

I merged this after addressing @vanzin's comments myself into master and 1.3.

@liyezhang556520 liyezhang556520 deleted the SPARK-6314 branch April 29, 2015 01:26
@liyezhang556520
Copy link
Contributor Author

Thanks to @andrewor14 and @vanzin's comments

jeanlyn pushed a commit to jeanlyn/spark that referenced this pull request May 14, 2015
This is handled in the same way with [SPARK-6197](https://issues.apache.org/jira/browse/SPARK-6197). The result of this PR is that exception showed in history server log will be replaced by a warning, and the application that with un-complete history log file will be listed on history server webUI

Author: Zhang, Liye <liye.zhang@intel.com>

Closes apache#5736 from liyezhang556520/SPARK-6314 and squashes the following commits:

b8d2d88 [Zhang, Liye] handle JsonParseException for history server
nemccarthy pushed a commit to nemccarthy/spark that referenced this pull request Jun 19, 2015
This is handled in the same way with [SPARK-6197](https://issues.apache.org/jira/browse/SPARK-6197). The result of this PR is that exception showed in history server log will be replaced by a warning, and the application that with un-complete history log file will be listed on history server webUI

Author: Zhang, Liye <liye.zhang@intel.com>

Closes apache#5736 from liyezhang556520/SPARK-6314 and squashes the following commits:

b8d2d88 [Zhang, Liye] handle JsonParseException for history server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants